<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	if(request.getParameter("theid")!=null)
	{
		request.setAttribute("theid", request.getParameter("theid"));
	}
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>新增产品</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/theme.css">
<link rel="stylesheet"
	href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
	type="text/javascript"></script>
</head>

	<body class="content1">
		<div class="header">
			<h1 class="page-title">新增产品</h1>
		</div>
	
		<ul class="breadcrumb">
			<li><a href="index.html">产品管理</a> <span class="divider">/</span>
			</li>
			<li class="active">新增产品</li>
		</ul>
	
		<div class="container-fluid">
			<div class="row-fluid"><!-- 
			<form class="form-inline" method="post"
					action="servlet/SysFunServlet?cmd=search">
					<input class="input-xlarge" name="searchname"
						type="text"> <input
						class="btn icon-search" type="submit" value="查询" />
						</form> -->
						
				<form method="post" action="<%=basePath %>product/add"  enctype="multipart/form-data">
					<div class="well">
						<div class="tab-pane active in">
								<label>商品名称</label>
								<input type="text" name="name">
								<label>商品价格</label>
								<input type="text" name="price">						
								<label>数量</label>
								<input type="text" name="number">
								<label>类型</label>
								<select name="kindsid">
								<c:forEach items="${kinds }" var="kind">
								<option value="${kind.id}">${kind.name}</option>
								</c:forEach>
								</select>
								<label>简介</label>
								<input type="text" name="shortmessage">
								<label>详细描述</label>
								<input type="text" name="discribe">
								<label>图片</label>
								<input type="file" name="upfile">
								<label></label>
							<input type="submit" value="提交">
						</div>
					</div>
				</form>
			</div>
		</div>
	</body>
</html>
